<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="sf" uri="http://www.springframework.org/tags/form" %>
<html>
<head>
    <title>JSP</title>
</head>
<body>
    <sf:form action="/role" method="post" modelAttribute="role">
        <c:if test="${role.id != null}">
            <sf:hidden path="id"/>
            <input type="hidden" name="_method" value="PUT">
        </c:if>
        角色名：<sf:input path="name"/>
        <br>
        <input type="submit" value="提交">
    </sf:form>
</body>
</html>
